package com.jic.product.after.api;

import com.jic.common.base.vo.RestResult;
import com.jic.product.after.response.HotProductResponse;
import com.jic.product.store.request.HotProductRequest;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;

import java.util.List;

/**
 * @description: TODO
 * @author: lixuehui
 * @date: 2020/11/28 16:59
 * @Version 1.0
 */
@FeignClient(name = "jic-product",path = "/HotProduct")
public interface HotProductApi {

    //根据商品id查询商品信息详情
    @PostMapping("/saveHotProduct")
     RestResult<Long> saveHotProduct(HotProductRequest request);

    //根据商品id查询商品top10信息详情
    @PostMapping("/queryHotProduct")
    List<HotProductResponse> queryHotProduct();


}
